#!/usr/bin/python # This is client.py file import socket # Import socket module s = socket.socket() # Create a socket object host = '10.1.32.180' #socket.gethostname() # Get local machine name port = 50123 # Reserve a port for your service. s.connect((host, port)) print s.recv(1024) s.close # Close the socket when done